package judesart.app.shared;

@SuppressWarnings("deprecation")
public class ValidationError_FieldSerializer {
  private static native java.lang.String getCode(judesart.app.shared.ValidationError instance) /*-{
    return instance.@judesart.app.shared.ValidationError::code;
  }-*/;
  
  private static native void  setCode(judesart.app.shared.ValidationError instance, java.lang.String value) /*-{
    instance.@judesart.app.shared.ValidationError::code = value;
  }-*/;
  
  private static native java.lang.String getFieldPath(judesart.app.shared.ValidationError instance) /*-{
    return instance.@judesart.app.shared.ValidationError::fieldPath;
  }-*/;
  
  private static native void  setFieldPath(judesart.app.shared.ValidationError instance, java.lang.String value) /*-{
    instance.@judesart.app.shared.ValidationError::fieldPath = value;
  }-*/;
  
  private static native java.lang.String getMessage(judesart.app.shared.ValidationError instance) /*-{
    return instance.@judesart.app.shared.ValidationError::message;
  }-*/;
  
  private static native void  setMessage(judesart.app.shared.ValidationError instance, java.lang.String value) /*-{
    instance.@judesart.app.shared.ValidationError::message = value;
  }-*/;
  
  private static native java.lang.String getObjectName(judesart.app.shared.ValidationError instance) /*-{
    return instance.@judesart.app.shared.ValidationError::objectName;
  }-*/;
  
  private static native void  setObjectName(judesart.app.shared.ValidationError instance, java.lang.String value) /*-{
    instance.@judesart.app.shared.ValidationError::objectName = value;
  }-*/;
  
  public static void deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader, judesart.app.shared.ValidationError instance) throws com.google.gwt.user.client.rpc.SerializationException{
    setCode(instance, streamReader.readString());
    setFieldPath(instance, streamReader.readString());
    setMessage(instance, streamReader.readString());
    setObjectName(instance, streamReader.readString());
    
  }
  
  public static native judesart.app.shared.ValidationError instantiate(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader) throws com.google.gwt.user.client.rpc.SerializationException/*-{
    return @judesart.app.shared.ValidationError::new()();
  }-*/;
  
  public static void serialize(com.google.gwt.user.client.rpc.SerializationStreamWriter streamWriter, judesart.app.shared.ValidationError instance) throws com.google.gwt.user.client.rpc.SerializationException {
    streamWriter.writeString(getCode(instance));
    streamWriter.writeString(getFieldPath(instance));
    streamWriter.writeString(getMessage(instance));
    streamWriter.writeString(getObjectName(instance));
    
  }
  
}
